package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author ziChuan
 * @Create: 2021/9/19 14:21
 * @Description:
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    /**
     *  /product/skuinfo/info/{skuId}
     *   /api/product/skuinfo/info/{skuId}
     * @param skuId
     * @return
     */
    @RequestMapping("/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
